var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = cc._decorator,
    a = n.ccclass,
    i =
        (n.property,
        (function () {
            function e() {}
            return (
                (e.prototype.Base64 = function () {
                    var e = this,
                        t = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789+/=";
                    this.decode = function (o) {
                        var n,
                            a,
                            i,
                            r,
                            s,
                            l,
                            c = "",
                            d = 0;
                        for (o = o.replace(/[^A-Za-z0-9\+\/\=]/g, ""); d < o.length; )
                            (n = (t.indexOf(o.charAt(d++)) << 2) | ((r = t.indexOf(o.charAt(d++))) >> 4)),
                                (a = ((15 & r) << 4) | ((s = t.indexOf(o.charAt(d++))) >> 2)),
                                (i = ((3 & s) << 6) | (l = t.indexOf(o.charAt(d++)))),
                                (c += String.fromCharCode(n)),
                                64 != s && (c += String.fromCharCode(a)),
                                64 != l && (c += String.fromCharCode(i));
                        return e._utf8_decode(c);
                    };
                }),
                (e.prototype._utf8_decode = function (e) {
                    for (var t = "", o = 0, n = 0, a = 0, i = 0; o < e.length; )
                        (n = e.charCodeAt(o)) < 128
                            ? ((t += String.fromCharCode(n)), o++)
                            : n > 191 && n < 224
                            ? ((a = e.charCodeAt(o + 1)),
                              (t += String.fromCharCode(((31 & n) << 6) | (63 & a))),
                              (o += 2))
                            : ((a = e.charCodeAt(o + 1)),
                              (i = e.charCodeAt(o + 2)),
                              (t += String.fromCharCode(((15 & n) << 12) | ((63 & a) << 6) | (63 & i))),
                              (o += 3));
                    return t;
                }),
                __decorate([a], e)
            );
        })());
o.default = i;
